package timer;

import javax.swing.*;
import java.awt.event.ActionListener;

public class Main {

    public static void main(String[] args) {
        ActionListener listener = new TimePrinter();

        // Construct a timer that calls the listener
        // once every 10 seconds
        Timer t = new Timer(1000, listener);
        t.start();

        JOptionPane.showMessageDialog(null, "Quit program?");
        System.exit(0);
    }
}
